package net.sync.disruptor.demo2;

import com.lmax.disruptor.EventFactory;

/**
 * 让Disruptor为我们创建事件，我们同时还声明了一个EventFactory来实例化Event对象。
 */
public class LongEventFactory implements EventFactory<LongEvent> {

    @Override
    public LongEvent newInstance(){
        return new LongEvent();
    }

}
